package com.ruoyi.teaching.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * 学生成绩记录对象 ya_exam_record
 *
 * @author ruoyi
 * @date 2024-04-01
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("ya_exam_record")
public class ExamRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 班级ID */
    @Excel(name = "班级ID")
    @TableField("classes_id")
    private Long classesId;

    /** 班级名字 */
    @Excel(name = "班级名字")
    @TableField("classes_name")
    private String classesName;

    /** 第几阶段: 1，一阶段 */
    @Excel(name = "第几阶段: 1，一阶段")
    @TableField("stage")
    private Integer stage;

    /** 第几周: 1,第一周 */
    @Excel(name = "第几周: 1,第一周")
    @TableField("week")
    private Integer week;

    /** 机试平均分 */
    @Excel(name = "机试平均分")
    @TableField("avg_computer_score")
    private Integer avgComputerScore;

    /** 笔试平均分 */
    @Excel(name = "笔试平均分")
    @TableField("avg_written_score")
    private Integer avgWrittenScore;

    /** 测试类型 */
    @Excel(name = "测试类型")
    @TableField("exam_type")
    private Integer examType;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("classesId", getClassesId())
            .append("classesName", getClassesName())
            .append("stage", getStage())
            .append("week", getWeek())
            .append("avgComputerScore", getAvgComputerScore())
            .append("avgWrittenScore", getAvgWrittenScore())
            .append("examType", getExamType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
